<?php 
namespace Admin\Controller;
use Think\Controller;
class CatController extends Controller{
	public function add_type(){
		if(!IS_POST){
			$this->display();
		}else{
			//var_dump($_POST);
			$catModel = D('cat');
			$catModel->add($_POST);
		}
	}	
}

?>